<!DOCTYPE html>
<html>
<head>
  <title>Media Player PNaCl</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <meta http-equiv="Pragma" content="no-cache">
  <meta http-equiv="Expires" content="-1">
  <meta name="author" content="videoexpertsgroup"/>
  <meta name="copyright" lang="ru" content="videoexpertsgroup"/>
  <meta name="description" content="Demo VXG Media Player for Chrome"/>
  <meta name="keywords" content=""/>
  <!-- vxgplayer -->
  <script type="text/javascript" src="vxgplayer-1.8.51.min.js"></script>
  <link href="vxgplayer-1.8.51.min.css" rel="stylesheet"/>
  <style>
    .wrapper {
      left: 300px !important;
      width: calc(100% - 340px) !important;
      height: calc(100vh - 20px) !important;
      border: 1px solid red;
    }
  </style>

</head>
<body>
<div
  id="vxg_media_player1"
  class="vxgplayer wrapper"
  url=""
  aspect-ratio
  latency="10"
  autostart
  controls
  avsync>
</div>
</body>
</html>
<script>
  //重点企业监控
  function updateMonitorPoint(code) {
    const url = `rtsp://223.99.164.170:9090/dss/monitor/param?cameraid=${code}&substream=1`
    window.vxgplayer('vxg_media_player1').src(url);
  }
  //市中城管监控
  function updateMonitorPointSZ(code) {
    const url = `rtsp://223.99.18.62:9090/dss/monitor/param?cameraid=${code}&substream=1`
    window.vxgplayer('vxg_media_player1').src(url);
  }
</script>
